package com.pliu.sqlSession;

import com.pliu.pojo.Configuration;

/**
 * @ClassName DefaultSqlSessionFactory
 * @Description TODO
 * @Author pliu
 * @Date 2020/6/21 15:58
 * @Version 1.0
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        DefaultSqlSession session = new DefaultSqlSession(configuration);
        return session;
    }
}
